package com.zj.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.zj.i18n.I18nCode;

public class Result<T> {

    private Integer code;
    private String message;
    @JsonIgnore
    private I18nCode messageCode;
    private T data;

    public Result(Integer code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public Result(Integer code, I18nCode messageCode, T data) {
        this.code = code;
        this.messageCode = messageCode;
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public I18nCode getMessageCode() {
        return messageCode;
    }

    public void setMessageCode(I18nCode messageCode) {
        this.messageCode = messageCode;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
